@import './variable.scss';
@mixin scrollbar {
    max-height: 88vh;
    margin-bottom: 0.5vh;
    overflow-y: auto;
    &::-webkit-scrollbar {
        width: 0;
        height: 0;
        background: transparent;
    }
    &::-webkit-scrollbar-thumb {
        background-color: rgba(144, 147, 153, 0.3);
        border-radius: 10px;
    }
    &::-webkit-scrollbar-thumb:hover {
        // background-color: rgba(144, 147, 153, 0.3);
    }
}

@mixin base-scrollbar {
    &::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: #ddd;
        background-clip: padding-box;
        border: 3px solid transparent;
        border-radius: 7px;
    }
    &::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.5);
    }
    &::-webkit-scrollbar-track {
        background-color: transparent;
    }
    &::-webkit-scrollbar-track:hover {
        // background-color: #f8fafc;
    }
}

html {
    body {
        @include base-scrollbar;
        position: relative;
        box-sizing: border-box;
        height: 100vh;
        padding: 0;
        overflow: hidden;
    }
    div {
        @include base-scrollbar;
    }
}

.h100 {
    height: 100%;
}

//模块功能按钮
.tableBtnCss {
    color: #fff!important;
    border: 1px solid transparent!important;
    margin: 0 5px 5px 0!important;
    .name {
        margin-left: 3px;
    }
}

//表格操作公共按钮
.com-table-handle {
    //列筛选
    .el-tooltip__trigger {
        color: var(--el-button-hover-text-color);
        border-color: var(--el-button-hover-border-color);
        background-color: var(--el-button-hover-bg-color);
    }
}

//抽屉标题公共样式
.drawer-title {
    display: flex;
    align-items: center;
    .title-icon {
        width: 6px;
        height: 16px;
        background-color: #00a2ff;
        margin-right: 6px;
    }
    .title-text {
        font-weight: 700;
        color: #333;
        font-size: 16px;
    }
}

.el-drawer__header {
    margin-bottom: 2px;
}

.drawer-content {
    padding: 0 30px;
    .el-form-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
         ::v-deep .el-form-item__label {
            font-weight: 700;
            font-size: 14px;
        }
         ::v-deep .el-form-item__content {
            width: 100%;
        }
         ::v-deep .el-input__inner {
            font-weight: 700;
        }
    }
    .el-input__suffix {
        height: auto!important;
        top: 6px!important;
    }
}

//form表单只显示红色*号 不校验 去掉错误提示
.noRules {
    .el-form-item__error {
        display: none!important;
    }
}

//菜单title-icon
.menu-icon {
    margin-right: $base-margin-15;
}

//菜单item-icon
.menu-item-icon {
    margin-right: $base-margin-10;
}

.listPage {
    height: 100%;
    overflow-y: auto;
}

.detailsPage {
    height: 100%;
}

.detailsPageBox {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    .detailsMain {
        box-sizing: border-box;
        overflow-y: auto;
        flex: 1;
    }
    //详情页面底部操作按钮
    .detailsHandleBtn {
        height: 32px;
        width: 100%;
        display: flex;
        justify-content: center;
        .el-button {
            width: 100px;
        }
    }
}

//清除浮动
.clearfix:after {
    content: "020";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    /* 触发 hasLayout */
    zoom: 1;
}

.icon-hover {
    cursor: pointer;
    &:hover {
        background-color: $base-hover-color;
    }
}

.i-icon:focus-visible {
    border: none !important;
    outline: none !important;
}

.p20 {
    padding: 20px;
}

.overflow-y-auto {
    overflow-y: auto;
}

.p20-l {
    padding-left: 20px;
}

.p20-lr {
    padding: 0 20px 0 20px;
}